package com.lagou.edu.factory;

/***
 * @Author ysc
 * @Description 构造者接口
 * @Comment //Comment
 * @Date 6:57 下午 2020/10/4
 * @Param
 * @return
 **/
public interface ObjectFactory<T> {

    /**
     * Return an instance (possibly shared or independent)
     * of the object managed by this factory.
     * @return the resulting instance
     * @throws BeansException in case of creation errors
     */
    T getObject() throws Exception;

}
